﻿using System;
using System.Collections.Generic;
using System.Linq;
using FluentAssertions;
using NUnit.Framework;
using ReactiveGraph.Core;

namespace ReactiveGraph.Tests
{
    [TestFixture]
    public class PropertyTests
    {
        [Test]
        public void CanSetValueOnUninitializedProperty()
        {
            var property = new Property<string>("Property");
            var triggers = new List<string>();
            property.PropertyChanged().Do(triggers.Add).Subscribe();
            property.Value = "foo";
            property.Value.Should().Be("foo");
            triggers.Should().HaveCount(0);
        }

      

    }
}
